<!DOCTYPE html> 
<html> 
<head> 
	<meta  charset="utf-8" />
	<title>标题</title>
	<meta name="viewport" content="width=device-width, initial-scale=1"> 
	<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
	<script src="__PUBLIC__/js/jquery-1.7.2.min.js"></script>
	<script src="__PUBLIC__/js/jquery.validate.js"></script>
	<!-- <script src="__PUBLIC__/js/jquery.metadata.js"></script> -->
    <script src="__PUBLIC__/js/messages_cn.js"></script>
    <link rel="stylesheet" href="__PUBLIC__/Css/jquery.validate.css" />
	<link rel="stylesheet" href="__PUBLIC__/Css/jquery.mobile-1.2.0.css" />		
	<script src="__PUBLIC__/js/jquery.mobile-1.2.0.js"></script>
    <script type="text/javascript">
      $().ready(function() {
    	 $("#business").validate();  
    	});
    </script>
</head>
<body>
<div data-role="page"> 
　<div data-role="header" data-position="fixed">　<a href="__URL__/index" rel="external" data-role="button" data-icon="back">后退</a>
           <div style="text-align:center;" >添加业务</div>   
           <a href="#" data-role="button" data-icon="refresh">刷新</a></div> 
　 <div data-role="content">
  <form method="post" action="__URL__/insert" data-ajax="false" id="business" class="validate">
   <input type="hidden" name="userid" value="<?php echo $_SESSION[C('USER_AUTH_KEY')] ?>"/> 
   <input type="hidden" name="businessdate" value="<?php echo date('YmdHis')?>">     
  <table align="center">	      
			<tr>
			<td><label for="companyname"><em>*</em>公司名称：</label></td><td><input name="companyname" type="text" required  id="companyname"/></td>
			</tr>
			<tr>
			<td><label>地址：</label></td><td><input type="text" name="address"/> </td>
			</tr>
			<tr>
			<td><label for="linkname"><em>*</em>联系人：</label></td><td><input name="linkname" id="linkname" required type="text" /></td>
			</tr>
			<tr>
			<td><label>电话：</label></td><td><input type="text" name="phone" class="phone"/>		</td>
			</tr>
			
			  
			<tr>
			<td><label>业务类型：</label></td><td><select name="type" id="type" data-mini="true"
							class="required">
								<option value="购进合同">购进业务</option>
								<option value="销售合同">销售业务</option>
						</select></td>
			</tr>
			<!--<tr>
			<td><label>产品单位：</label></td><td><input name="unit" type="text"/></td>
			</tr>
			<tr>
			<td><label>购买数量：</label></td><td><input  name="quantity" type="number" /></td>
			</tr>
			-->
			<tr>
			<td><label>供货周期：</label></td><td><input type="text" name="leadtime"/></td>
			</tr>
			<tr>
			<td><label>备注：</label></td><td><textarea name="note" cols="56"  rows="6"></textarea></td>
			</tr>
			<tr>
			<td colspan="2">
			<div data-type="horizontal" data-role="controlgroup"  style="text-align:center;">
			<input type="submit" value="保存" data-icon="check"/>
			<a href="__URL__/index"  rel="external" data-icon="back" data-role="button" >取消</a>
			</div></td>
			</tr>
</table>
</form>
</div> 
</div>
</body>
</html>